Repository navigation
fix(web): signing in from Settings opens one sign-in page - #578
Merged
Merged
Conversation
Signing in to Codex from Settings opened the OpenAI page and also http://localhost:1455/. The panel opens the first address a login command prints, and `codex login` prints its local callback server first. Claude, Cursor, OpenCode and Pi open their sign-in page themselves, so Settings opened a second copy for them. In Pi's terminal sign-in the copy was cut off, because Pi wraps long addresses into 98-column rows. - The panel never takes an address on the CLI's own machine (localhost, 127.0.0.0/8, 0.0.0.0, *.localhost) or one that doesn't parse. - A cursor jump to another row reads as a line break. Windows terminals draw blank lines that way, which glued the next words onto the address. - The full target of an OSC 8 link is read first, so a wrapped link gives its whole address. The kept output never cuts a code in half across chunks. - Codex, Claude (sign-in and token setup), Cursor, OpenCode and Pi are listed in SELF_OPENING_SIGN_IN_DRIVERS. For them Settings shows "Open sign-in page" instead of opening the page again.
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Signing in to Codex from Settings opened the OpenAI page and also
http://localhost:1455/. Checking the other providers found the same kind of bug: Claude (sign-in and token setup), Cursor, OpenCode and Pi open their sign-in page themselves, so Settings opened a second copy. In Pi's "Open it here" terminal sign-in that copy was cut off and didn't load.Why. For terminal sign-ins the Settings panel opens the first address the login command prints.
codex loginprints its local callback server before the OpenAI address. On Windows the terminal draws blank lines as cursor jumps, which glued the next words onto the address (...codex_cli_rsOn). Pi's screen wraps long addresses into 98-column rows.How it's fixed (
providerConnectFlow.logic.ts,providerAuthCommands.ts,ProviderInstanceCard.tsx,ProviderConnectFlow.tsx):localhost,127.0.0.0/8,0.0.0.0,*.localhost) or one that doesn't parse.SELF_OPENING_SIGN_IN_DRIVERSlists Codex, Claude, Cursor, OpenCode and Pi. For them Settings shows "Open sign-in page" instead of opening the page again. The tool still opens the page itself, as before.Checked.
vp fmt,vp lintandvp run typecheckpass.127.0.0.2and[::1]getting through, and a waiting address dropped by the tail cut.Known, not changed here.
docs/providers/grok.md./login.